package com.csun.cmny.provider.model.domain;

import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Table(name = "cn_dmc_rfid_label_oldman")
@Alias(value = "dmcRfidLabelOldman")
public class DmcRfidLabelOldman implements Serializable {

    private static final long serialVersionUID = -5998936929315764832L;

    /**
     * 设备Id
     */
    @Id
    @Column(name = "device_id")
    private Long deviceId;

    /**
     * 老人Id
     */
    @Id
    @Column(name = "oldman_id")
    private Long oldmanId;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 角色Id
     */
    private Long roleId;
}